//***************************************************************************
//*
//*	File:			DialogOptions.cpp
//*	Description:	Options dialog
//*
//***************************************************************************

//
//--------------------------------------------------------------- PRECOMPILED
//

#include "stdafx.h"

//
//--------------------------------------------------- DECLARATION DEPENDENCIES
//

#include "SmartReplace.h"

//
//--------------------------------------------------------------- DECLARATION
//

#include "DialogOptions.h"

//
//--------------------------------------------------- DEFINITION DEPENDENCIES
//

//
//-------------------------------------------------------------- PREPROCESSOR
//

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//
//---------------------------------------------------------------- DEFINITION
//

//
//---------------------------------------------------------------------------------------------------
//*************************************     CON/DESTRUCTION     *************************************
//---------------------------------------------------------------------------------------------------
//

//***************************************************************************************************
//**																					  Constructor
//***************************************************************************************************
//**	@DOC		CONSTRUCTION
//**	@MFUNC		Default constructor
//**	@PARM		[in|opt] Pointer to the parent window
//**	@END
//***************************************************************************************************
//inline
CDialogOptions::CDialogOptions( CWnd* pParent /*=NULL*/ )
: CDialog( CDialogOptions::IDD, pParent )
{
	//{{AFX_DATA_INIT(CDialogOptions)
	m_bAskForExtendedOnly	= FALSE;
	m_iConfirmReplacement	= -1;
	m_iSaveAndClose			= -1;
	//}}AFX_DATA_INIT
}

//
//---------------------------------------------------------------------------------------------------
//****************************************     VIRTUALS     *****************************************
//---------------------------------------------------------------------------------------------------
//

//***************************************************************************************************
//**																				   DoDataExchange
//***************************************************************************************************
//**	@DOC		VIRTUALS
//**	@MFUNC		Exchanges data between the dialog's members and its controls
//**	@PARM		[in/out] Pointer to data exchange context
//**	@END
//***************************************************************************************************
//inline
void CDialogOptions::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange( pDX );

	//{{AFX_DATA_MAP(CDialogOptions)
	DDX_Check	( pDX, IDC_CHECK_ASK_FOR_EXTENDED_ONLY	, m_bAskForExtendedOnly	);
	DDX_CBIndex	( pDX, IDC_COMBO_CONFIRM_REPLACEMENT	, m_iConfirmReplacement	);
	DDX_CBIndex	( pDX, IDC_COMBO_CLOSE_WINDOWS			, m_iSaveAndClose		);
	//}}AFX_DATA_MAP
}

//
//---------------------------------------------------------------------------------------------------
//****************************************     MESSAGES     *****************************************
//---------------------------------------------------------------------------------------------------
//

BEGIN_MESSAGE_MAP(CDialogOptions, CDialog)
	//{{AFX_MSG_MAP(CDialogOptions)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
